/**
 * 看板娘 create to by doujiabao - 20200118
 */

import React, { Component } from 'react'

import styles from './index.module.styl'

class KanBan extends Component {

    componentDidMount() {
        const L2Dwidget = window.L2Dwidget
        //初始化
        // L2Dwidget.init({
        //     "model": { "jsonPath": JSON_DATA }
        // });

        L2Dwidget.init({
            "model": {
                jsonPath:
                    "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
                "scale": 1
            },
            "display": {
                "position": "left", "width": 150, "height": 300,
                "hOffset": 0, "vOffset": -20
            },
            "mobile": { "show": true, "scale": 0.5 },
            "react": { "opacityDefault": 0.7, "opacityOnHover": 0.2 }
        });
    }

    render() {
        return (<div className={styles.kanban}>
        </div>)
    }

}

export default KanBan